package com.zhouyer.study.service.fallback;

import com.zhouyer.study.service.feign.CodeFeignClient;
import org.springframework.stereotype.Component;

/**
 * 验证码服务降级
 *
 * @author zhouyao
 * @version 1.0
 * @date 2021/12/7 12:02 下午
 */
@Component
public class CodeFeignClientFallback implements CodeFeignClient {
    @Override
    public Integer validateCode(String email, String code) {
        // 默认返回验证码错误
        return 1;
    }
}
